package com.example.daxiguaforharmony.game;

import java.util.Dictionary;
import java.util.HashMap;

public class GameData {
    public HashMap<Integer, Integer> items = new HashMap<Integer, Integer>();
    public void addItemNum(int itemId, int addNum) {
        int num = 0;
        if (this.items.containsKey(itemId)) {
            num = this.items.get(itemId);
        }
        num += addNum;
        this.items.replace(itemId, num);
    }
}
